#!/bin/bash
pgrep pdflatex|xargs kill; pgrep make|xargs kill; 
make clean && make; 
if [ $? -eq "0" ];then
acroread Erlang-Programming_The_Parallel_World.pdf &
fi
